from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate

"""
此文件用于存放本项目所需插件
"""

# 初始化
db = SQLAlchemy() # ORM模型
migrate = Migrate() # 数据迁移

# 绑定app对象
def init_exit(app):
    db.init_app(app=app)
    migrate.init_app(app=app,db=db)


